When property alleged to have been stolen or embezzled comes into the custody of a peace officer, he shall hold it subject to the order of the court as provided in this chapter.