Task Scheduler 2.0 introduces the ITaskService interface and scripting support. Therefore, you can try if a COM object for this class exists or not. For instance,
var t = Type.GetTypeFromProgID("Schedule.Service");
if (null != t)
{
}
else
{
}
: . prog id MSDN: http://msdn.microsoft.com/en-us/library/aa446862(v=VS.85).aspx