Prospects for observing ultracompact binaries with space-based gravitational wave interferometers and optical telescopes