To locate these Opt Out flags for a member, access the account via Member Inquiry, then click on the Member Data tab. You will find the 3rd-party opt out and CU contact opt out information.
If you need this information for all or multiple members, try using Tool #100 CU*BASE Report Builder (Query) to build a custom inquiry. Opt out information will be found in file MASTERL under field names MT3RDOPT for 3rd Party Marketing Opt Out and MTCUCOPT for CU Contact Opt Out.