Mapping electromagnetic fields structure in plasma using a spin polarized electron beam