Leaving after 7+ years

Leaving for military, how would I go about taking my profit plan and 401k money out.