Hello Henry,
For transferring all of your licences (Hauptwerk and sample sets) to another person, and assuming that you're using Hauptwerk v5+ (which uses the iLok system for licensing), your wife would need to know your iLok account name and password, and then she could log in to iLok License Manager on a computer (with your iLok dongle attached, if you have one) to transfer all of the licences to the iLok account of the person to whom they were being donated/sold. PACE charge a $25-$50 fee for that, and the process is described under "Your Licenses | How do I transfer licenses to another iLok account?" on their FAQ page: https://ilok.com/#!faq
Once the licences have been transferred, they would no longer be in the iLok dongle, so the hardware (organ console, computer, iLok dongle, etc.) could be donated/sold to anybody (whether the same as the recipient of the licences or not), without any additional steps needed.