I answered my own question by re-reading the UiPath Terminal Connection documentation again. It is possible using the IBM EHLLAPI
Now i just need to figure out how to determine the session name as I posted here: How to get name/title of all open applications