Using the everymote system (web-base remote control for the Internet of things) that still seems to be under development, the designers have demonstrated a method of controlling the output section of a candy machine to dispense the contents using their web-based remote control system. An interesting development, however it doles out those M&Ms only one at a time...
One could always reproduce the system with an Ethernet-enabled Arduino running the webserver and a continuous rotation servo. However for more information, including the Arduino sketch head over here. And we're on twitter and Google+, so follow us for news and product updates as well.
To add Ethernet connectivity to your Arduino projects, consider using our Freetronics EtherTen. Apart from being fully Arduino Uno-compatible, it has onboard Ethernet, microSD socket, full USB connection (no pesky FTDI cables needed) and supports optional Power-over-Ethernet: