Identifying drupal installation on windows
You can achieve this by implementing the php_uname() function:

$os_name = php_uname("s");
if($os_name == 'Linux') {
  return TRUE;
}
//can apply additional checks for other OS
else {
  return FALSE;
}