If the 8th digit of your VIN number is a 1, then it is a LB7 Duramax (the early engine). If the 8th digit is a 2, then it is a LLY. 

In mid 2004, GM switched to this newer LLY engine.