How can I check if I'm minting a block on the current/next epoch?

Hello, I’m new to operating a stake pool and I know that to mint a block you have to win the lottery. How can I check if I won the lottery for the current/next epoch? Also are there other resource I can look at to learn more about Cardano Stake Pools?

looks like I have to use the cncli?

Yes, u need to use cncli leaderlog