I did a quick check on google and found this:
http://dim.com/~ashe/ccd-astro.html
Sounds like this guy is developing a program to do what you want.
Here is another link:
http://schmenk.is-a-geek.com/
But this link might be the most promising:
www.linuxjunkies.org/html/Astronomy-HOWTO.html