Computer Science House, a special interest house at the Rochester Institute of Technology, created a networked drink machine around 20 years ago.  There are more details on their website.  They actually have two - the original is Big Drink, the other Little Drink.  Both do the same thing with different technologies.  Pretty smart group of kids.