If you are really meaning that you have data stored by a digital camera which recorded additional information about the image, including its nominal size, you would need to read the EXIF (Exchangeable Image File Format) data for that image. This is not a trivial task for JPG files, for example.
See the following Wikipedia articles for guidance:
Exchangeable image file format JPEG
Otherwise, as my colleagues have already said, it s not possible to determine what the nominal 'size' of a pixel is without knowing anything at all about the size of the sensor in the camera and the focal length of the lens involved.
-Stewart