Here’s a PeopleCode snippet that you can use to obtain the server name where a process is being run.
SQLExec("select servernamerun from psprcsrqst where prcsinstance = :1", &PROCESS_INSTANCE, &servername);
As mentioned, you’d have to pass the Process Instance to get the server name.
Hope this helps. 🙂