Is it possible to detect an incorrectly used welding wire?

Yes, it is. XRF-analyse easily detects the composition of a welding seam and thus also that of the used wielding wire.