If it's an internal thing hosted on IIS you can grab the current username, I did exactly that a few months ago. I remember it involved a lot of fucking about, though.
That said, if you're running PHP it seems unlikely you're on IIS.