None of them.
Java, in the interest of being platform independent, does not implement many platform-specific features (i.e. you can't determine free space left on a disk through the API). You can use JNI to hit the Win32 API and get to the registry from there. Try searching on Google. Chances are that someone's done the hard work and made the source available.