Thousands of pounds paid in second homes council tax could be clawed back to support services in coastal communities.