The VIN number (engine code and serial number) is on the machined surface on the cylinder block, at the front of the right cylinder bank.
The engine code is also indicated on the vehicle data sticker.