Determining the spin-orbit coupling via spin-polarized spectroscopy of magnetic impurities