Investigating the Magnetic Field of Earth-Directed Coronal Mass Ejections