The two-headed snake in Viva Piñata is called a Twingersnap. To get one, you'll need to romance two Syrupents. Once an egg appears, keep an eye on it—when it bounces high for the third time, hit it with a shovel to hatch it.
And here's a fun bonus: do the same thing with Twingersnap eggs, and you can end up with a four-headed piñata!