correct me if i'm wrong (at work and dont have my mbp with me) but in your keyboard and mouse preference tab in system preference, there's a check box to disable the trackpad when an external mouse is being used.
as for your keyboard, you could always turn on your num lock and that should disable a majority of your keyboard, i don't think theres a way to turn off the internal keyboard.