Following function should do the work.
from datasets import get_dataset_config_names config_names = get_dataset_config_names("<org/dataset>")
You can check examples at https://huggingface.co/docs/datasets/en/load_hub#configurations