・It is driving four cars ahead of me.
私の4台前を走っています。
・It was running four cars in front of mine.
私の車の4台前を走っていました。
英語で「〜の○台前」と位置関係を表すときは、「○ cars ahead of ...」や「○ cars in front of ...」という表現を使います。
数字の部分を変えれば「2台前(two cars ahead)」や「3台前(three cars ahead)」のように応用できます。