Claiming miles driven for military and school

I was told since I am in the military (national guard) that I can claim my miles to and from the armory.
Also, I have heard of students claiming their miles driving to and from school if they commute. Both of these added up to about 12,000 miles last year combined. Can I deduct this?