I think the sentence 'He can't wear anything' as it is, confers the first meaning of 'He can wear nothing.' It's a simple negation and the two sentences are totally equivalent as far as semantics is concerned. If you want to confer the second meaning, you'd have to say it as 'He can't wear just anything.'