You shouldn't think of the routes as timelines. They are simply routes in the game, completely separate storylines sharing the same setting and characters.
Archer is Hero Emiya, period.
The 3 routes are played in order, IIRC. UBW is the second one, so you find out in the 2nd route.