Hmmm... well, the soda machine I know has a small bottle of co2 attached to it, a small chambre to put your bottle in and a handle. When you pull the handle, a small tube is lowered into the bottle and releasing some gas.
It carbonates water and juice, so why cant it do the same with beer ?