I'm not an expert, but mp3tag, winamp, and twonky use the %rate% atom.
windows explorer writes to its own proprietary atom, but idk which one. (trying to figure that out is how I found this page)
iTunes afaik only keeps ratings in its DB and doesn't write them to tags.
mp3 uses id3, while m4a uses atoms.