You do not explain the circumstances of you arrest or what your driving record may be. If you have an ongoing DUI case that has not been resolved, refused to blow on a DUI, or some other reason, they may keep your license depending on the facts of the case.
Unfortunately, this is difficult to do and cannot be answered in a post. I would suggest hiring an attorney.. The DUI attorney can review whether your original stop was a lawful stop, whether there was probable cause to arrest you, whether you were given appropriate warnings before taking the breath tests and/or field sobriety tests (walk and turn etc).
Also, this attorney could possibly help you with what is called a "rescission hearing" to get your license back where it is possible that the SSS (statutory summary suspension) of your license may be rescinded. You may be able to get a permit now for driving if you qualify but you will have to get a BAIID (Breath Alcohol Ignition Interlock Device).
On January 1, 2009 , an amended DUI law took effect with the major new features as follows:
1) any first-time DUI offender is required to have a Breath Alcohol Ignition Interlock Device (BAIID) installed on his or her vehicle;
2)the new law increases the length of the statutory summary suspension from three months to six months for those offenders that failed the breath alcohol test at the time of arrest and from six months to 12 months for those offenders that refused the breath alcohol test at time of arrest;
3)DUI offenders are responsible for all costs associated with the BAIID device, which includes an installation fee of approximately $100 and rental and monitoring fees of about $110 per month.
Once a DUI is charged, there is no statute of limitations. There is a 160 day speedy trial provision but that involves complexities that would require more factual information. They will hold your driver's license for bail until the case is resolved and all fines have been paid.
The statute of limitations is 18 months for a misdemeanor DUI. That law requires the government to FILE charges within 18 months of the date of offense. It appears that they already did so, since you are in court now. You are probably anxious to finish the case, but the 'right' result often takes more time than the 'quickest' result.