First add a reference to WUApiLib "C:\windows\system32\Wuapi.dll"
see below snippet
WUApiLib.AutomaticUpdatesClass auc = new WUApiLib.AutomaticUpdatesClass();
bool active = auc.ServiceEnabled;
MSDN says :
"The ServiceEnabled property indicates whether all the components that Automatic Updates requires are available."