You should be more specific in your question. Do you want the username running the webserver from a Win32 server, or the username of the person opening the webpage?
To get the local username (of the user account that your web server and/or Perl is running from), it's in $ENV{USERNAME}. You can't get the username of the remote client accessing the webpage over the Internet though.