No, I've never actually eaten dirty socks. But I have smelled them. Taste = smell. Everything tastes like it smells. Our taste buds can only distinguish between salty, sweet, sour, savory and bitter. Beyond that, virtually everything else about the taste comes from the smell.
Sometimes you have to eat it to smell it, as it might not have a distinctive olfactory
odor, but the same receptors for smell are the ones that detect flavor in food (beyond salty, sweet, sour, savory and bitter).
If you don't believe me, have a bite of fried isopod, and you'll discover that you know what dirty socks taste like, too.