Simply soak a cotton ball with rubbing alcohol and run it over the painted surface. If your cotton ball has paint on it, then the surface is water-based. If it doesn’t, then the surface was painted in oil based paint. If it’s oil-based, you might need to prime it with oil-based primer before starting to repaint.