The standard Virginia probation conditions say "not to excess" (such that it interferes with your life) and not to show up for your probation meetings under the influence.
It goes without saying you're not to break any laws either (that's probation condition #1).
The judge is free to impose sanctions at sentence and the probation department has some leeway to restrict and test for alcohol and drugs (it's standard to do one test at intake time and then depending on the case they may spring others on later). Further, a DWI is almost certainly subject to VASAP which may impose abstinance in cases where the provider finds it warranted.

