We had a car for ten years before it broke down.
We had had a car for ten years before it broke down.
But, stylistically, I always use simple past "had". "Had had" is weird.
"Have" makes no sense in your example. It implies that the statement is true today, which in your example it is not.
We have had this car for ten years. (and we still have it today).
We have always had Chevys in my family. (everyone is my family has had a Chevy in the past, and we all have Chevys now).
I think to say, "we have had this car" implies that you can use it, which is why to put it next to "before it broke down" doesn't work well in the sentence.
Compare:
My dad has had these broken cars parked on the lawn for two years. (they were broken in the past, and my dad had them then, and they're still broken today and my dad has them)