I was blinded by the headlights of a car coming from in front of me.

Literal

I [topic-は] front [from-から] come car [possessive-の] headlights [by-で] eye [subject-が] blinded.

前から来る自動車 ('a car coming from in front') is a relative clause modifying 自動車. で marks the cause/instrument of being blinded. 目がくらむ ('eyes are dazzled/blinded,' literally 'eyes dim') is a set idiom. ヘッドライト is an English loanword.