Proposal for the detection of magnetic monopoles in spin ice via nanoscale magnetometry