query nvidia driver version on windows

Hi all, for my project I need to query nvidia driver version to see if CUDA is enabled. For example, my current driver version is 270.81. How can I do that from Visual C++? I am running windows 7 64 bits.

Also, when I check my device driver through device manager, I found the driver version is displayed as 8.17.12.7081. Did Nvidia ever release that driver?

Thanks.
gyc

nvmlSystemGetDriverVersion