I used to be MD of a will-drafting company and I'm in agreement with Bednobs. You can't totally 'disinherit' a spouse or dependent children but, otherwise (in England & Wales), you can leave your estate to who you like.
Stu Dent correctly points out that, in Scotland, your children have the right to share one half of your 'moveable estate' (assuming that you don't leave a surviving spouse) . However, your house (which is what your question is about) is part of your 'heritable estate' and you can leave it to anyone you like.
Chris