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 Did Nvidia ever release that driver?