The process of selecting men to serve in the armed forces involuntarily is called conscription. Conscription is sometimes called a "draft", and dates back to antiquity (which just means, like a long time ago, or ancient past) and continues in some countries to the present day under a variety of names.
I hope this helps you with whatever you need it for.