Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi. I'm Brian and I'll try to help.
Only if your wife's subscription is Microsoft 365 Family or Premium can it be installed for multiple people. A Microsoft 365 Personal subscription, while eligible for installation on multiple computers, is legal only for the original subscriber. That person can install it on all their devices but it cannot be shared with another person.
If she has the Family or Premium subscription, she can share it with you by sending you an invitation. You accept that invitation and then you can install it on your device under your account. Here is Microsoft's guidance for sharing a Family or Premium subscription: https://support.microsoft.com/office/b389b9ce-3ae3-4a82-9017-39d79972fcba