Graphic driver

i am try to write program in c or opencl to check graphics driver is install or not .if yes then what version?. any one know please help .