Many soldiers recorded a copy of their discharge papers in the county in which they were living when they enlisted or where they lived right after their discharge.
If you can't find military information on your ancestor, see if they recorded a copy of their discharge papers at their local county recorder's office.