With this code you can print the users home directory to the console:

String home = System.getProperty("user.home");
System.out.println(home);

Example output:
C:\Documents and Settings\Frank.mydomain