In the medical exam, they ask you various questions on a form. If you admit to having done drugs than they will escort you to psych. The psychologist will ask, and if you tell the truth you're only given a one year van. If the psych decides you lie, the ban is significantly longer.
They also drug test everyone. In this case, I am not sure what the punishment is if they do find something.