Messages[symbol]gives all the messages assigned to a particular symbol.
Get messages that have been explicitly defined for a function:
Get the messages for NDSolve that have been defined during the current session:
Typically, for system commands, messages are only loaded when they are required:
MessageName Message Check SyntaxInformation