Let us know if this thread helped to solve your requirement: How to determine whether a process was run from an Orchestrator
You can check using a Rest API endpoint as below:
GET for https://cloud.uipath.com/ORGANIZATION_NAME/TENANT_NAME/orchestrator_/odata/Jobs
and you may check the Source and SourceType values
SourceType possible values:
Manual -> 0
Schedule -> 1
Agent -> 2
Queue -> 3
StudioWeb -> 4
IntegrationTrigger -> 5
StudioDesktop -> 6
AutomationOpsPipelines -> 7