Use the UFT "CPQ" command (Control Program Query) to retrieve information about the host environment at the server end of a UFT session.
CPQ is one of the few commands that can preceed FILE. It relates to the target host (the receiving host), and not to the file (if any) being sent.
The format of the CPQ command is
|is some system setting or environment variable
Obviously security concerns should be considered when implementing CPQ.