There is absolutely no way they could enforce that. Not to mention it is simply unethical. A player by leaving after one year is not harming the school. At worst he is disappointing fans.
Also, you do realize I hope, that probably 80-90% of American NBA players grew up below the poverty line. Shame on anyone for wanting to put a mandatory delay in them getting themselves (and family) out of poverty by legal means. Not to mention the added (injury) risk (even if it is only 1-5%) by delaying their ability to earn an income.
What the NCAA should do, is allow undrafted players to return. If they accepted any cash, just pay it back and you can return. Pay for players travel expenses for NBA workouts. The NCAA-T is a Billion-$ cash cow for the NCAA. Say the top 100 players explore their options and workout for some teams, and on average spend $10K (which is a high estimate), that would be $1M, or just 1% of the NCAA-T revenue.
On top of that, I think the NCAA should also allow drafted players to return if they want to. Why protect the NBA's draft? You thought you would go in the 1st, but you went in the 2nd, come on back to school. You went #25 but you think you could be a lottery pick next year with a bigger contract, come on back to school. You don't want to move to OK City and play there, come on back to school. BUT, the NCAA could also use this threat as a tool for encouraging the NBA to change their draft rules and at least let the NCAA provide some input into the direction they change. The NBA teams do not want that added risk of losing their draft picks (even if it doesn't happen often). Think back to the 80's when John Elway said he would rather go play baseball than for the Colts. And I think 20 years later Eli Manning did something similar.