I would recommend doing it without Java first. Can you use telnet? Or does Window need to install something like Putty? Heck.... can you even ping the HP box from the windows box?
Once you confirm that the network connection is okay, and that that a particular protocol works, then
you should look into the Java API that does that protocol.
Henry