Yes: curses, ability damage, and ability drain causes loss of the ability to use the feat. You don't actually lose the feat, however - you just don't gain it's benefits until you meet the prerequisite again.
From the Players Handbook 3.5 page 87.
Prerequisites
A character cannot use a feat if he or she has lost the prerequisite. For example, if your characters strength drops below 13 because of a ray of enfeeblement spell, he or she can't use the Power Attack feat until the prerequisite is met again
When you lose a feat that is a prerequisite of another feat only the abilities of the prerequisite feat are lost, because you only have to have a prerequisite feat to qualify for another feat and losing the abilities doesn't change the fact that you have the prerequisite feat, you don't actually have to be able to use the prerequisite feat to qualify for the other feat...
...So if your dexterity was dropped below 13 you would lose access to Two-Weapon-Fighting
but you would not lose access to Oversized-Two-Weapon-Fighting.
In theory, a character with a BAB lower than +4 would see a larger AC bonus from Total Defense than from Combat Expertise. Once BAB +4 is attained, Combat Expertise is strictly superior.
However, both options are exceedingly poor. Situations dire enough to give up offensive capability completely, or severely hamper it, should generally be responded to by retreating, not trying to “turtle.” That maneuver is only appropriate when cornered and help will arrive very soon (1 round, maybe 2). Since this is situation every character should be actively trying to avoid as much as possible, Total Defense is superior to Combat Expertise simply because you don’t need to have planned on getting into that situation in order to use it. Because you should be avoiding that situation as much as you can, spending a feat on a situation that occurs rarely and you are actively avoiding is unwise. The attacks you make at a −5 penalty are just not worth a feat, nor is the +1 to AC.
If you are concerned about this situation, and want to spend resources on handling it, it is far, far better to invest in a “panic button” that can get you out of such a situation. Anklets of translocation provide two swift-action, 10-ft. teleports a day for a measly 1,400 gp. That’s worth way less than a feat, and will go a long way to making sure you never have to turtle in the first place.
Unfortunately, that argument is moot in a lot of cases because characters are forced to acquire Combat Expertise because of its frequent use as a feat tax. Once you’ve got it (and BAB +4 or more), there’s no reason not to use it if you find yourself in a situation where you have to turtle. You should still have panic buttons, and should still use them first, of course.
Best Answer
No, by the RAW it does not.
You can actually both fight defensively and use Combat Expertise at the same time, if you wish. While very similar in effect, they are treated as fundamentally different by the rules.
Fighting defensively is a special combat action, and you don't need to use that action to use Combat Expertise. If you did, the wording of the feat would be very different. This interpretation is also backed up by the official FAQ, bottom of p.36, as well as the wording of the Total Defense action.
However!
I personally think this is a little silly, and think these sorts of mechanics should really have been unified. If you houserule it, allowing the bonuses to trigger if you take a -4 to attack would be playing it safe. (Though probably not necessary unless it seems overpowered in play.)