WhichContinent is a project mainly written in ..., it's free.
A MySQL table mapping all existing countries on their continent
After searching for a proper API hook somewhere to retrieve the continent of a specific country, I decided to map them in a table myself and use this for my applications.
http://wiki.github.com/Roelven/WhichContinent/