How to get the Ram size and Hard disk size of the PC using Java? And Is it possible to get the currently logged user name on PC through java?
Have a look at this topic, which goes into detail of how to get OS information such as this.