Generally, you don't do this from the quiz. You send the grades from Moodle's gradebook.
I don't think there are good standards in this area. What does exist is quite a nice export from the gradebook in a Simple XML format. That is a good place to start for building integrations.