If not Java, then what? VB?
Presumably you'll need some method of interfacing the Windows API to extract the current username. You then need to pass this to some transport to the server such that you can then get it into your database.
Though, to answer Hywel's question (which we seem to have avoided): No, it can't.