Metal enrichment in elliptical galaxies and globular clusters through the study of iron and H-Beta spectral indices