Because of the layout of stores (that don't have a destination operand) this check is exactly the same as the one in RISCVInstrInfo::isLoadFromStackSlot.
I discovered this while doing some experiments that needed identifying loads/stores from/to the stack. Stores always return false.