Hi !
I Think, just use the EPANET dynamic link library (DLL) of functions from Programmer's Toolkit.
http://www.epa.gov/nrmrl/wswrd/dw/epanet/EN2toolkit.zip
use the ENgetlinktype to retrieve the research Pump
then ENgetlinkvalue from linktype=pump to retrieve flow
and for Head
1) i think you must create an node in exit of your pump
2) then retreiving the pressure at junction that you've created with ENgetnodevalue.
....