Is it possible to identify planets with a magnetic field

Is it possible to identify planets with a magnetic field