with my pcm in the gtp the VIN is stored, but the VIN does not have to match the one for the car for it to pass inspection. There is also some info about the car that is stored, Ill have to remember to look and my PCM file to see what is exaclty stored. Last year I had a different VIN stored in the PCM and I still passed inpection with no problems. I also had a few codes shut off, like EGR, rear 02, missfires, Evap. Basicly anything that gave me a SES light I shut off and still passed.
Edit: with the programer I have I can wrtie any info about the vehical I want to the PCM (VIN, Make, Model, Year)