Yuko has never spoken to a foreigner.

Literal

Yuko [topic-は] foreigner [with-と] speak-[past-た]-experience-not.

The ~たことがない pattern ('have never done X') is the past-experience negative — distinct from the frequency ~ことがある. Note that 外国人 ('foreigner, non-Japanese person') is paired with と as 'speaking with.' A classic JLPT example of the experience pattern.