there is no way toyota are running a cosworth engine, the toyota team is going by the philosophy of designing and building as much as they can 'in-house', same with their production cars.
there is a history of toyota novel that i found at my local library one boring uni holiday break, its not a bad read actually.