Welcome to permies Mark
Compost and eathworms are different species.
If you found them in the garden you've most probably got earthworms, which need the relatively low organic matter in soil to live.
Composting worms are very 'active'. If they jump about, you've probably got the right species.
If they're slow-moving, it's probably earthworms.
Know anyone with a compost heap? They're usually a good source of compost worms.
Oh, but it's wintery over your way. Maybe not