Active Duty Personnel, Reservists, and Guardsmen convicted of felonies do not normally receive discharges which allow them to draw benefits (Dishonorable discharges tend to follow felonies committed while in the military).
Military veterans who are convicted of felony crimes after discharge may lose certain benefits while incarcerated:
1. Disability payments are reduced by 50% upon the 61st day of incarceration for a felony.
2. No other medical benefits through the VA while in custody of another government agency which is responsible for health care (i.e. a prison).
3. All military pensions are suspended during incarceration (for any offense - felony or misdemeanor) upon the 61st day until the date of release. They are not transferred to the prison, they are simply suspended.
4. Remaining benefits may be claimed by the dependents of the incarcerated veteran, if eligible.
Non-veteran and veteran felons alike, get "free healthcare" while incarcerated.
Veterans (and all other federal employees) can lose all benefits if they commit treason, espionage, sabotage, or other national security violations under the HISS Act and its revisions (5 USC § 8312). Rape is not one of the items listed.