Most vector illustration programs like Inkscape and Adobe Illustrator will create vector based line art off of clean pencil sketches. It generally sucks though, so most pros don't even bother and just trace over it again with the tablet to get nice lines.
For real-life photographs you can pretty much forget about getting nice lines.
There are some programs like Poser that will make nice line art off of 3D models though.