Recognizing current platform within game

I know about the GetPlatformName function that can be used to query the specific platforms. Specifically how do I distinguish between Quest vs Quest2?

Given these devices have varying RAM capacity, I want to use different limits to ensure smooth user experience. Are there any extra preprocessor directives available for this?