Assuming your use case is for Attended, You may try using assets and configure Asset Per Robot to achieve this function. The robot will pick the email ID based on the machine the process is running.
Thanks Marian, I have tried that but for some reasons when running a process from UiPath studio it does not show on the list of jobs. So I have used you idea and used these JSON items to filter
State => Running
ReleaseName => Get Project Name from Reading project.json
HostMachineName => Environment.MachineName
RuntimeType => Development
if results is null or is not null but runtimetype is Development then is running from Studio/Studio Assistant