Check out ghostfixer/video-driver-summary
You can review the commands it uses for determining the video driver.
It’s best to create a new post for each new question. This helps keep topics focused and makes it easier for others to find answers later. When unrelated questions are added to an existing thread, it can confuse readers, for example, someone looking for help with solving for Z might not expect to find a discussion suddenly shift to solving for Y. Keeping threads on-topic benefits everyone.