Have Military Law Questions? Ask a Military Lawyer.
You have to file a request with Standard Form 180 through the National Archives. All old military service records are sent there for storage.
While the records themselves are not online, you can use the website to obtain the forms you need.