Ignoring the cost of running the HSM (it's likely to be prohibitively expensive for most use cases), is it theoretically possible to run your baking node fully in the cloud using a cloud provided HSM such as that provided by Amazon [1].
Specifically do the tezos command line tools support such a setup in a similar fashion to how they work with Ledger.