If you have a look at the "configuration bits" section of the data sheet there are usually 2 configuration registers that can be read by a chip programmer.
Some of the bits are used to identify the microchip part number, the other bits indicate the silicon revision number - which is important if you need to check the silicon revision errors for the part on the Microchip web site.