How to tell 340 vs 440

The ID number is cast into the block on the drivers side. It will contain the engine size as the last 3 numbers before the dash. IE: XXXXXX340-5 or XXXXXX440-1

I'm not sure on the correct amount of numbers the x's represent.

Jack