If you can see the passenger side rear of the block and get the date code off it you can tell. The date code is different on the Navistar-cast blocks vs the GM-cast blocks. Also, anything newer than 2001 will be Navistar and not GM.
There is an extra raised portion of the casting and tapped hole by the motor mount plate that the non-optimizer blocks dont have see the pic View attachment 30269
The above motor is mine dont have a comparison photo if someone else has one post it up.