Well you would take the output text in the Lua script and you need to use the first 4 digits (or 3 digits if the output seed is 7 digits long) and convert it to hex. That would give you the raw RNG output, which can be used to find a SID number.
It's kinda hard to explain this over text. :/
Edit: I hope I understood what you're asking me but I'm not sure if I got what you're trying to say. Also, 3rd post here if you haven't seen it yet.