To replace the drive belt on a Toro XL500 riding lawn mower, first ensure the mower is turned off and disconnect the battery for safety. Remove the deck by detaching the necessary pins and bolts, then take off the old belt from the pulleys. Install the new belt by threading it through the appropriate pulleys, ensuring it is properly aligned. Finally, reattach the deck and reconnect the battery before testing the mower.