With Lazarus2.0.2/FPC3.0.4 on a Debian9 system,
GetEnvironmentVariable('USERNAME') yields the correct name, while
GetEnvironmentVariable('COMPUTERNAME') yields an empty string.
Why?
(in the terminal the various options of "uname" give the proper info)