Are you wanting to use the tool you are writing to query a specific system for the information without a frame file at all? Or are you asking about how to get the information out of a captured frame?
I mean how to get the information out of a captured frame. It is like the ME update tool "fwupdlcl64" which can run under CMD and output ME FW version to a file.
If I am understanding you correctly, I believe you can find a way to output this information using the UEFI Shell: https://software.intel.com/en-us/articles/uefi-shell
Unfortunately, GPA does not output this information. However, I would suggest checking out these other forums to see if they can offer a solution:
If I do find a solution on my side, I will post back