Is a practical example which can be cloned and modified to track not the streamer/owner of the discord so serves as an example.
Thats not directly possible and an invasion of privacy.
You’d have to get permission from the user (let along to collect the users Discord/Twitch ID pairs) and even then you can only track who is in chat, not who is watching.