Using the Session ID in the invite you can look up the relevant session by executing a session search by ID using EOS_SessionSearch_SetSessionId. You can then access the SessionDetails handle using EOS_SessionSearch_CopySearchResultByIndex and then use EOS_SessionDetails_CopySessionAttributeByKey…
https://dev.epicgames.com/community/learning/knowledge-base/rykDD/epic-online-services-how-do-i-get-session-attributes-from-a-session-invite