The only way to regain your cd key (and it's not a sure one either) is to contact blizzard and request a new one. but you will have to prove where you bought the game, when you bought it, receipts and much more. Now you know why you should always leave your disc in the cover

Sorry mate but you shouldn't have any problems via lan networking with your friends. but the pirated keys will not let you hook up on Battle Net