Even easier than crawling under the truck and having to scrape the axle tube for the code.
Look in the glovebox for the Service Parts Identification decal.
The axle gear ratios all start with the letter G, for example GU6 is the code for 3.42 gears.
There are many sites out there for looking up GM's RPO codes, there are many members here more than willing to help, there is also the possibility of going to the service counter at the local GM dealer and asking them (easy as pulling hen's teeth at times, from my experience).