Only thru where insert code is done or thru a trigger. However you could make a column for the data to be instered without the default and then add a computed column that looks and if columnx is null generates a X or Y based on the condition. Or even better do in the view or select statement thus you don't have to worry about the constraint.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)