Thinking about it, the last time the son of a monarch (again, not technically a prince) was imprisoned was in 1685, when James Scott, 1st Duke of Monmouth (and illegitimate son of Charles I), was arrested for leading a rebellion against James VII and II. He was subsequently executed for treason.