Hmmm. Trouble is that you can invoke the java program with -Duser.name=SomeoneElse or put this in a properties file and then you don't get the windows OS user name, but "SomeoneElse" instead, so this can't be relied upon.
So I'm still looking for a way to do it - I suspect native code is...