Detecting two-party quantum correlations in quantum-key-distribution protocols (12 pages)