How can I get a prescription for chloral hydrate?

See your doctor. But it's not a very good drug; there are much better and safer medicines available that have supplanted this 19th-century throwback.