SW license deactivate/ activate

my computer died along with hard drive carrying a copy of my serial number. how can i retrieve this serial number and redownload SW to my new computer? thanks