Heterogeneities in confined water and protein hydration water