An x-ray probe of laser-aligned molecules