Two men are in hospital after being shot by police officers in Sydney’s west sparking a critical incident investigation.