Can you drink alcohol while taking 40mg of prednisone a day? Just one or two glasses of wine.

Better if you don't. Mixing alcohol with any med can cause unpredictable side effects due to the fact that alcohol has various metabolites that can interact with other drugs which also have various metabolites. In other words, it adds a strong component of unpredictability to your treatment. Not worth it.