You can use the Interactive property on the Application object to find out whether Softimage is running in interactive mode (returns True) or in batch mode (returns False):
' Using Application.Interactive is the same as Application.Interactive = True If Application.Interactive Then Application.LogMessage "The application is running in interactive mode." Else Application.LogMessage "The application is running in batch mode." End If