Customization > Automation Interface > Functions > For System Simulations > State Machines > GetStateMachineName function (automation interface)
  
GetStateMachineName function (automation interface)
Syntax:
GetStateMachineName
Returns the path and name of the active listener dll as a string.