How do you get the Mainframe Terminal ID’s that are being used by the bot

Is there a way in which we can retrieve the Mainframe Terminal’s ID using UiPath?