Probe returning: From which mineral field it gathered resources?
You will need to read up on Units (anything you can click on). Each unit has an ID.
Next, you will have to use a trigger. When a harvester starts to harvest from a mineral patch, you will make a trigger that assigns that harvester to the mineral patch.
You can learn the basics of triggers here.
So once a probe starts harvesting, you can trigger a countdown or whatever you have in mind. Then in that trigger you will command it to go back to the ID it just harvested from which can be found from the resources it is currently gathering or the X/Y axis on the map (I'm also assuming there are other ways to get the ID of what it came from)