Is it possible to access referee reports for investigating scientific history?
All reputable journals today use web-based manuscript management systems that keep information about each manuscript, its various revisions, who was asked to review and what their reviews were, as well as editor decisions. So yes, this information exists in these systems at least as far back as the introduction of these systems (at least ten years ago). As the editor-in-chief of a journal, I can look at all of this data for every article in my journal.
But I suspect that it will be exceptionally difficult to get at this kind of information if you're not the editor-in-chief yourself. To do research on this means that you're doing research on human subjects, with all that implies: You'll have to have IRB [1] approval for your study protocol, you might have to anonymize the data (which I suspect would be exceptionally difficult in itself), and/or you might have to receive informed consent from the reviewers, authors, and editors (all of which are involved in the decision making process).
I have a suspicion that few publishers are interested in going to this level of trouble. On the other hand, I have no doubt that such studies have been done, so I would expect that it is possible to get at the kind of data you're looking for -- it's just very difficult to do this kind of research.
[1] In the US, IRBs (Institutional Review Boards) are the bodies tasked with overseeing research that involves human subject research. All human subject research has to be approved by an IRB before the data so gained can be used for publications.
Requests to review for The Astrophysical Journal, published by IOP Science, come with the following note:
"7. If qualified historians wish to use your report, we will ask you or your heirs. If you wish us to destroy your report, then please inform us."
I also have a vague recollection of a request for my consent to release my reports after a suitable delay (20 years?) for historical research, but I can't find the message, or recall which journal & publisher it was.
Many journals use open peer review - the reviews are published alongside the paper. See e.g. Biomedical Central, BMJ Open.
So this isn’t just for future historians - you can see the peer review comments now.
(The weakness here is you can only see reports for accepted papers - the rejected papers aren’t published, so neither are the reviewer reports)