I believe
http://www.wowinterface.com/download...llMonitor.html
does what you are asking. Maybe take a peak at the functions they use to gather data. I'm guessing they are using a chat parser to see skillups but I haven't looked at the source directly myself.