Is there any way of finding out what type an image is when embedded in a picturebox.

For example, if someone loaded "C:\mypicture.jpg" into a picturebox then how can I find out if the image is jpg or bmp without knowing the source ?