Actually it does have a kind of DNA. You look for trace elements and their proportions. With the correct records and a good analysis you can trace the gold back to its source. Since the museum probably has some gold from the same shipwreck and possibly the same melt it would be possible to trace your "lump" back to the shipwreck.