Get transaction history of address using electrum commands
You can calculate the fee by taking the sum of the value of the transaction inputs and subtracting that from the sum of the value of the transaction outputs. The fee is really just the leftover amount of a transaction that is not specifically sent as an output.