I went to do something with the emulator and a rom where I run a game, like say Mario Party, and then read the current score and who won with a script?

Is there an easy way to read this off the emulator or rom? I don't have much experience with how emulators actually work, but just wanted to try this one thing lol.