I don't think you can, Cookies are sent as request headers by the browse.
This means that the only way to check if browser has accepted a cookie, is to check the request headers on an incoming request.
If you're setting the value of a Cookie and then checking the result of this value, you're not checking it in a request header.
I think the only way is to go to a different webpage...