How to check for Quest 3, Quest 2 or Pico?

I want to use different settings for Quest 3. How can I identify the current headset?

I found a solution for this problem, if there is a better way, please let me know:

	if RenderingServer.get_video_adapter_name() == "Adreno (TM) 740":
		pass # It' Quest 3
	if RenderingServer.get_video_adapter_name() == "Adreno (TM) 650":
		pass # It' Quest 2 / Pico 4
	if RenderingServer.get_video_adapter_name() == "Adreno (TM) 540":
		pass # It' Quest 1
	else:
		pass # Other