DVLA should write to you with an application form 90 days before your ban is due to end. OR you can get a form D1 from the post office and submit it 90 days before the end. Remember that DVLA write to the address on your licence, not the one you gave the police or the court.
You should hear about the doctor you will have to see about 10-14 days after you send the form back.