Both are correct. When pronouncing HDD as individual letters, we say "an HDD". By contrast, when pronouncing the acronym as words (Hard Disk Drive), we put the article "a".
It’s an HDL. The abbreviation HDL is typically pronounced as individual letters. Since the first letter, the h, starts with a vowel sound (aich), it takes the article "an".