Routes that are stored in the FMC will have been given by the airline to the supplier -usually some weeks before the flight. This data is only changed at the next AIRAC. It is the job of the crew to check that the route used is the same as the flight plan on the day.
If the route is not stored in the FMC then it will be manually entered and should then be the same as the flight plan and the ATC plan.