Every crystalline materials have a characteristic XRD pattern. So, by matching XRD pattern of the materials with its standard XRD pattern you can identity that your sample is calcite or not. You can also perform Rietveld refinement of the XRD pattern using standard software.