The coupling of EEG/fMRI allows measuring brain activity at high spatio-temporal resolution. The localisation of EEG sources depends on several parameters including the position of the electrodes on the scalp. An accurate knowledge about this information is important for source reconstruction. Currently, when acquiring EEG/fMRI together, the position of the electrodes is generally estimated according to fiducial points by using a template. In the context of simultaneous EEG/fMRI acquisition, a natural idea is to use MR images to localise EEG electrodes. However, MR compatible electrodes are built to be almost invisible on MR Images. Taking advantage of a recently proposed Ultra-Short Echo Time (UTE) sequence, we introduce a fully automatic method to detect and label those electrodes in MR images. Our method was tested on 8 subjects wearing a 64-channel EEG cap. This automated method showed an average detection accuracy of 94% and the average position error was 3.1 mm. These results suggest that the proposed method has potential for determining the position of the electrodes during simultaneous EEG/fMRI acquisition.