Your Maryland driver’s license stays valid past its expiration date while you are on active duty stationed outside Maryland, and the same applies to your dependents.
There is nothing to apply for. Carry your orders and military ID with your licence, and renew the licence within 30 days after your discharge or your return to Maryland.
Your active duty orders showing you are stationed outside Maryland, and your military ID or dependent ID.