CDI: Copyrighted Data Identification in Diffusion Models