We don't have a way to completely block orders to those states, but you could set up a couple Shipping Rules specific to United States:Alaska and United States:Hawaii that applies an outrageously exorbitant Flat rate shipping amount to the cart when buyers provide a zipcode for one of those states in their cart, effectively deterring such orders.
I think setting up a flat-rate amount like $9999.99 would appear to affected buyers like some sort of glitch/mistake (rather than a "shipping ripoff"), so if they contact you about it, you could then explain you cannot ship to AK/HI and that was the only way you could discourage such orders. If you wish, you could add a line of explanation to your cart by adding the following lines to your View Cart code on every page, just before the "// -->" line in the standard code:
function EJEJC_config() {
EJEJC_POSTCALL=true;
}
function EJEJC_shown() {
jQuery("#tdPmnt").attr("innerHTML",
"Shipping is only available for the <b>48-state Continental US</b>");
}
If you're already using those functions for other cart customizations, just add the new jQuery and custom HTML lines given above into your existing function EJEJC_shown(){} section.