system
A chat on subreddit /r/pcmasterrace
human
the slot closest to the cpu is normally the faster one if there is a difference
gpt
This is the wonderfully idiot proof answer. 

Honestly I suspect on a z790 board even the chipset nvme slots would be gen 4, but this is a surefire way to make sure.