That's an expensive mistake to make, though frying your HDDs is usually a lot cheaper than frying your GPU.
It's seriously annoying that this is the case though. Unless you kept the cables in the original package or in a labelled container, you cannot safely use them again if you owned more than one modular PSU.