Windows 8 upgrade question

Hey guys,

i just finished building a costom desktop and I am looking at my options for putting windows 8 on it. I have an old XP desktop sitting here and I'm wondering if I can transfer that license to the new rig to get a cheap upgrade.

Any ideas?