Some years ago I found a couple of lotus script to read the hostname using the windows script.
Lotus Script
Dim WshNetwork As Variant
Set WshNetwork = CreateObject("WScript.Network")
Print WshNetwork.ComputerName
Formula
mypc:=@RegQueryValue("HKEY_LOCAL_MACHINE"; "SYSTEM\\ControlSet001\\Control\\ComputerName\\ComputerName"; "ComputerName");
@Prompt([Ok];mypc;mypc)

