You don't say anything about the Progress/OpenEdge version or the OS this should run.
On Windows you can retrieve it from an environment variable (coded in Firefox IDE - therefore not syntax checked but you should get the idea):
OS-GETENV ( "COMPUTERNAME").
I'll take it that there is an equivalent for *nix - but I can't remember it right now.
Heavy Regards, RealHeavyDude.