A driver has been disqualified after being caught speeding on the M4 motorway.