The meta data is just normal text is it not? It is sort of layed out like xml I think. This may just be in psd files, I don't know. I'm not an expert.
Anyway to do this you could just use the file functions to get the file contents into a variable or an array and then search for the xml bits like "<Resolution>" and save them.