Can you pass herpes from drinking?

Very unlikely. It partially depends if you mean hsv1 or hsv2. These are usually passed with skin to skin contact. If you drink something from a glass or cup and then share with another, i guess in theory its possible but likely very rare, like maybe 1 case in a million or so.