The specifications can be found here;
Have a look at the code for this article;
The ExifWorks class
And pay particular attention to the
file; this class is used to read the tag information, you will see how it is all done there.
You may have to read the latest specifications to make sure the tags you want are all handled.