This approach is fairly common for language ID and has also been successfully applied to dialect ID (Biadsy et al., 2009).
it requires a certain amount of training data that may not be available for specific dialects, and it is uncertain how it performs with very similar dialects.