Your company probably has a written employee policy manual (in the United States at least). I would almost guarantee there is a written policy about drinking during working hours. That would also apply to teleworking.
If your company doesn't have a written policy about drinking during working hours, consult with your HR department. Expect them to say something to the effect of no drinking on the job.
From the company's perspective, if you are impaired, you open the company up to significant liability.
Let me propose an extremely unlikely scenario. Your company has no written policy concerning drinking. You are working from home. No, you are really at the sports bar working, but having a cold one (several) while working. Something comes up that requires your physical presence at the office. You make the decision to drive. You get into a wreck on the way to the office. You get injured and injure someone else.
Who is responsible for repairing the damages to your vehicle? If your injuries are serious enough for you to be out of work, are you entitled to workman's comp? Who is responsible for repairing the damages to any other property you may have hit during the wreck? And who pays for the medical care of the person you injured?
I am not a lawyer, so I can't answer these questions. I do know that these questions will come up. I have seen it many times (I used to work in a hospital).
Best policy, don't drink during working hours. Save that for when you are at home (not working) or with friends (and a designated driver).