Normally, 怎么 is more oral than 如何. 如何 can be read in much ancient literature, and it can also be used in formal documents, but that is too formal.
You may express "How about that?" saying:
There is an idiom 如何是好, which expresses "What/How should I do?".