Any trucks built after Jan 1, 2004 is an "04. 5". As others have stated, the 3rd injection event and catalytic converter are two big differences.
A straight 04 could be had in 3 different power ratings. I think the SO was 250 HP, the HO was 305 HP. There was also a California emissions model which I think was 235 HP.
Look under the hood at the sticker on the driver's side of the valve cover cover (it's plastic). As an example, mine says "ISB 305".
If the sticker is missing, look at the radiator fan shroud. If it's attached to the radiator, it's an 04. 0. If it's attached to the engine in any way, it's an 04. 5.
Bob