Does Homoscedasticity applies only for linear regression models?
It also applies to other methods, i.e. not just linear regression. For example, ANOVA and T-test also depend on homogeneity of variance.
One method to check the homogeneity of variance, compatible with the one-way ANOVA, is the Barlett's test.