You can do this in two ways: 1) use JNI. You will need several native Windows calls for this: OpenSCManager, OpenService and QueryServiceStatus for retrieving, and CloseServiceHandle for cleaning up.
2) use the SC command. For instance, to query whether or not my IIS web server is running:
You'll need to run this using ProcessBuilder (or Runtime.exec), and then parse the output.