There is no way to forcibly take a drink, nor does the canteen ever run out of water. An on-screen notification will tell the player character when this happens.
As long as the canteen is kept in the Courier's inventory, they will take a sip from it every five minutes, restoring 15 HP and lowering Dehydration by 25 in Hardcore mode.