Give pointers if necessary in a technical interview, see what questions they ask. If they are completely flubbing it and you already know it is a no go, call it off. It's a little shocking to hear but in a few minutes they will generally be grateful/understanding you didn't waste two more hours of their time.