What have you tried? We won't write this for you.
You will have to learn how to extract the GP references from the container object.
This gets all OUs and the linked GPOs. You will have to resolve the links and create custom objects to gain a workable base.
Get-ADOrganizationalUnit -filter * | select Name, LinkedGroupPolicyObjects
\_(ツ)_/