get the tag #s off of it. Their are multiple versions or every transfer case and it doesnt matter if the truck is red/green/white or whatever! only the tag is going to tell you what it is and if its going to work.
biggest concern is that they both have the same trans (ex auto-auto) as input shafts differ. Other than that, the other biggest difference is going to be if its a DLD or DHD tcase.
2007 Laramie 3500, 4.5" RevTek, 35x12.5 ProComp MTRs, buckstop front+rear, bullydog TD, BD RFI intake, Lightforce 140s in the bumper, 240HIDs up top
1997 SLT 2500, 5.5" fabtech, 36x13.5 IROKs, 5x12s, s300, 4kgsk, inj pump FUBAR