Programmatically get driver version?

Is there a way to query the driver version in a CUDA program to see what the user is running?

-jm

I am also interested in a way to find this on windows.
Any idea?

found : nvmlSystemGetDriverVersion