Recovering the licences from a failed iLOK usb device is described at their faq page at https://ilok.com/#!faq under the RMA tab.
There are chargeable options to enhance this process. Have a look at ZeroDownTime and Theft Loss Recovery on the iLOK website. I think these services are good value and add both a faster route to recovery and reasonable value insurance for sample set licence codes.
Iain