Aims. We describe a method for identifying XMM-Newton observations that have been affected by solar wind charge exchange (SWCX) emission and present preliminary results of previously unidentified cases of such emission within the XMM-Newton Science Archive. Methods. The method is based on detecting temporal variability in the diffuse X-ray background. We judge the variability of a low energy band, taken to represent the key indicators of charge exchange emission. We compare this to the variability of a continuum band, which is expected to be non-varying, even in the case when SWCX enhancement has occurred. Results. We discuss previously published results with SWCX contamination that have been tested with the above method. We...