The most straightforward way: take a battery, charge it, measure its open circuit voltage (OCV), and let it sit without any connections. Going back to the battery later, you will notice that the battery has a lower OCV, indicating that the battery is in a lower state of charge (SoC). This SOC difference is the battery self-discharge rate.