Get self-hosted runner's name via API

Is there a way to determine what self-hosted runner is running the job using API or maybe Github App event ?

It seems that runner’s name is in logs (in web UI - “View raw logs”), but I couldn’t find API calls for this and runs logs become available only after execution.

Thank you very much