This should do the trick:
var cookieEnabled = (navigator.cookieEnabled) ? true : false;
From here you can do whatever you want. In your case you can disable submit button if cookieEnabled variable is set to false.