I found this excellent bit of advice in The Amy Vanderbilt Complete Book of Etiquette: “If you start to shake hands with someone who has lost an arm, shake his other hand. If he has lost both arms, shake the tip of his artificial hand (be quick and unembarrassed about it).”