Yes, they are both stamped. Not going to be easy if everything is still in the car. Here is where the VIN is at on the block:
http://www.svtperformance.com/forums/fox-body-cobras-23/599041-where-locate-vin-block-trans.html
The transmission should have the same number, located on the passenger side, right next to where it mates up with the bell.