How do I tell a 5.2 from a 5.9

How about checking the VIN for the engine code???