How can you tell if your old car got a newer used engine in the past?

LOOK UP THE ENGINE CODE STAMPED INTO THE FRONT LEFT (DRIVER'S SIDE) BLOCK BY THE HEAD.