Determining the Version of a Loaded IPF

I would like to get the #Pragma Version value from an included/compiled IPF. I know this information is available from the Procedure -> Info menu. But how do I get it within a function?

Thanks